home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 44 / PC Actual CD 44.iso / Linux / Cygwin / full.exe / Disk1 / data1.cab / Tools / share / tix4.1 / Verify.tcl < prev    next >
Encoding:
Text File  |  1998-12-04  |  434 b   |  22 lines

  1. # Verify.tcl --
  2. #
  3. #    Config option verification routines.
  4. #
  5. # Copyright (c) 1996, Expert Interface Technologies
  6. #
  7. # See the file "license.terms" for information on usage and redistribution
  8. # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  9. #
  10.  
  11. proc tixVerifyBoolean {val} {
  12.     return [tixGetBoolean $val]
  13. }
  14.  
  15. proc tixVerifyDirectory {val} {
  16.     if ![file isdir $val] {
  17.     error "\"$val\" is not a directory"
  18.     }
  19.     return $val
  20. }
  21.  
  22.